home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1993 September / September 93.iso / Archives / Utilities / System / FKey / FKeys / ResetWindowFKey / ResetWindow™ FKEY Docs < prev   
Encoding:
Text File  |  1992-04-05  |  3.0 KB  |  42 lines  |  [TEXT/ttxt]

  1. April 5, 1992
  2.  
  3.  
  4. ResetWindow FKEY
  5.  
  6. This is the world's simplest FKEY. Okay, maybe not, but it is pretty basic. If you find yourself changing monitor configurations from time to time, this may come in handy.
  7.  
  8. Essentially, all this FKEY does is move the frontmost window to a convenient location just below the menu bar (the global coordinates 1,40). If you had used a program and moved a window to a location that isn’t visible on your current monitor, you may have problems seeing this window. When programs save window locations, they’re supposed to be smart enough to ensure that they are re-opened in a visible location. But not all programs are smart enough to do this.
  9.  
  10. Enter ResetWindow FKEY. If you install this in your System file (by simply dragging it into your system file—NOT!....you’ll have to use ResEdit or some FKEY utility), and then press command-shift-zero (or whatever number to which you have renumbered the thing), the frontmost window will magically appear in the upper left corner of your main monitor (the monitor showing the menu bar, if you are using more than one monitor).
  11.  
  12. No, this FKEY does not resize the window or anything left. As the textbooks say, this is “left as an exercise for the reader.”
  13.  
  14. This program is so simple, let me show you the source code (written in Think Pascal):
  15.  
  16. -------------------------------------
  17.      procedure main;
  18.         var
  19.             w: windowPtr;
  20.     begin
  21.         w := FrontWindow;
  22.         if FrontWindow = nil then begin
  23.                 Sysbeep(10);
  24.             end
  25.         else begin
  26.                 MoveWindow(w, 1, 40, TRUE);
  27.             end;
  28.     end;    { main }
  29. -------------------------------------
  30.  
  31.  
  32. Please ignore the following restrictions:
  33.  
  34. DISTRIBUTION RESTRICTIONS: THIS PROGRAM CONTAINS CRITICAL TECHNOLOGY AND MAY NOT BE DISTRIBUTED AT ALL. LICENSING IS AVAILABLE FROM THE INTERNATIONAL BUSINESS MACHINES CORPORATION, REDMOND, WASHINGTON, D.C. ALL RIGHTS RESERVED. SITE LICENSING IS NOT AVAILABLE UNDER ANY CIRCUMSTANCES, BUT INDIVIDUAL COPIES MAY BE PURCHASED IN ANY QUANTITY, UP TO SIX (7) PER OPERATING CENTRAL PROCESSING UNIT. THIS FUNCTION KEY (XCMD) IS COMPATIBLE WITH THE 68000 AND 68010 PROCESSORS BUT MAY NOT FUNCTION ON 68020, 68030, 68040, OR 68050 PROCESSORS WITHOUT ADDITIONAL RAM INSTALLATION. PLEASE CONTACT YOUR LOCAL APPLE DEALER FOR THE BEST PRICES ON RAM MEMORY EXPANSION. USE OF THIS SOFTWARE IS PROHIBITED ON LAPTOP (POWERBOOK OR OUTBOUND) SYSTEMS UNTIL SUCH TIME AS THE AUTHOR GETS ONE DONATED TO HIM.
  35.  
  36. Thank you for supporting WayneWare™. Party on, Garth.
  37.  
  38. Sincerely,
  39.  
  40. The Batman (yes, really me. I write software, too, didn’t you know?)
  41.  
  42. P.S. This post script has been added by a good friend of the Batman: the author’s anonymity is not all that secret, and I expect to be sued for adding this language to this document, but that wouldn’t be my first transgression against good friends. I hope that the author appreciates my addition of typesetting features like curly apostrophes and em dashes (I guess he, like, ain’t too literate). Speaking of which, ahaya! (Excuse me, I’m sneezing, and I can’t get up!)